package com.adopapa.nezhacloud.outerapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.adopapa.nezhacloud.innerapi")
@ComponentScans({ //
		@ComponentScan("com.adopapa.nezhacloud"), //
		@ComponentScan("com.adopapa.nezhacloud.innerapi"), //
})
@ImportAutoConfiguration({FeignAutoConfiguration.class})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class NezhaOutterapiApplication {

	public static void main(String[] args) {
		SpringApplication.run(NezhaOutterapiApplication.class, args);
	}

}